-- GENERATED SPELL FOR [Scarlet Sorcerer] --


function spell0_4294(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4294', 7000, 1)
end

function spell1_4294(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(6146,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4294', 15000, 1)
end

function Sorts_4294(pUnit, Event)
local choix_sorts_4294 = math.random(0, 1)
if choix_sorts_4294 == 0 then
pUnit:RegisterEvent('spell0_4294', 1, 1)
end
if choix_sorts_4294 == 1 then
pUnit:RegisterEvent('spell1_4294', 1, 1)
end
end

function mob4294_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4294', math.random(1500, 3000), 1)
end

function mob4294_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4294_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4294_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4294, 1, 'mob4294_Action')
RegisterUnitEvent(4294, 2, 'mob4294_Leave')
RegisterUnitEvent(4294, 3, 'mob4294_Kill')
RegisterUnitEvent(4294, 4, 'mob4294_Die')
